package com.weipai.education.model;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
@Accessors(chain = true)
public class Message {
    private Integer id;

    @NotBlank(message = "加盟商id不能为空")
    private Integer userId;
    @NotBlank(message = "推荐人id不能为空")
    private Integer recommendId;
    private Date createTime;
    @NotBlank(message = "推送消息不能为空")
    private String content;

    private Integer type;

    private Integer sign;
}
